﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SynoManager.DownloadStation.Search
{
    /// <summary>
    /// Base interface for Torrent/NZB search engines.
    /// </summary>
    /// <remarks>
    /// Implementers can probably use the <see cref="HttpSearchEngineBase" /> or <see cref="RssSearchEngineBase"/>.
    /// </remarks>
    /// <seealso cref="ISearchResult"/>
    /// <seealso cref="SearchEngineBase" />
    public interface ISearchEngine
    {
        /// <summary>
        /// Perform a (blocking) search for results matching the query.
        /// </summary>
        /// <param name="query">Query that will be passed to the search engine.</param>
        /// <returns>Array with <see cref="ISearchResult">SearchResults</see>.</returns>
        ISearchResult[] Search(string query);
    }
}
